<?php $this->load->view("common/header") ?>
<body>
<?php  

/*
foreach($report_parent as $r)
{
	dump($r[0]['company_name']);	
}
*/


?>
  <div id="page_wrapper">
<?php $this->load->view("common/speel") ?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td><form name="form1" method="post" action="<?php echo base_url() ."report/job_jobs" ?>">
        <table width="500" border="0" align="left" cellpadding="3" cellspacing="3">
          <tr>
        <td colspan="4"><span class="welcomeMsg">Report :: Job Reports :: Jobs Logged</span></td>
        
        </tr>
          <tr>
            <td width="67" align="left" class="tbl_field_lable">Start date</td>
            <td width="144"><input type="text" name="report_start" id="report_start"></td>
            <td width="144"><input name="report_start_time" type="text" id="jog_start_time" value="00:00"></td>
            <td width="105" align="left" class="tblBodyNoneHover"><input name="action" type="submit" class="tblBtn" id="action" value=" Build Report "></td>
          </tr>
          <tr>
            <td align="left" class="tbl_field_lable">End date</td>
            <td><input type="text" name="report_end" id="report_end"></td>
            <td><input name="report_end_time" type="text" id="jog_end_time" value="23:59"></td>
            <td align="right" class="tblBodyNoneHover">&nbsp;</td>
          </tr>
      </table>
      </form>


      </td>
    </tr>
    <tr>
      <td>
            <?php if(!empty($jobs)) { ?><br>
<br>
      <table width="99%" border="0" align="left" cellpadding="2" cellspacing="0">
        <tr class="tblSubHeader">
          <td class="tbl_header"><strong>Jobs Reports : Jobs Logged </strong> for the period of '<?php echo $s ?>' to '<?php echo $e ?>'</td>
        </tr>
        <tr>
          <td><table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" rules="groups">
            <tr class="tbl_row_header">
              <td align="left">Job #</td>
              <td align="left">Client</td>
              <td align="left">Job Subject</td>
              <td align="left">Type/Pri</td>
              <td align="left">Start Time</td>
              <td align="left">End time</td>
              <td align="left">Hours</td>
              <td align="left">Allocated User</td>
            </tr>
            <?php foreach($jobs as $job) { 
	$trClass = "tblBody";

?>
            <tr class="tbl_row">
              <td width="26" align="left" ><span class=""><?php echo $job['id'] ?></span></td>
              <td width="48"  align="left" ><span class=""><?php echo $job['company_name'] ?></span></td>
              <td width="119"  align="left" ><span class=""><?php echo $job['job_subject'] ?></span></td>
              <td width="60" align="left" ><span class=""><?php echo $job['job_type'] ?> / <?php echo $job['job_pri'] ?></span></td>
              <td width="62" align="left" ><span class=""><?php echo $job['job_start'] ?></span></td>
              <td width="52" align="left" ><span class=""><?php echo $job['job_end'] ?></span></td>
              <td width="39" align="left" ><span class=""><?php echo $job['spent2'] ?></span></td>
              <td width="97"  align="left" ><span class=""><?php echo $job['firstname']." ".$job['lastname']   ?></span></td>
            </tr>
            <?php } ?>
          </table></td>
        </tr>
      </table>
      <?php } ?>
      </td>
    </tr>
</table>
<?php $this->load->view("common/footer") ?>
</div>
</body>
</html>
